<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
  <!-- Tell the browser to be responsive to screen width -->
  <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
  <!-- Bootstrap 3.3.6 -->
  <link rel="stylesheet" href="/static/adminlte/bootstrap/css/bootstrap.min.css">
  <!-- Font Awesome -->
  <link rel="stylesheet" href="/static/css/font-awesome.min.css">
  <!-- Ionicons -->
  <link rel="stylesheet" type="text/css" href="/static/css/ionicons.min.css" />
  <!-- Theme style -->
  <link rel="stylesheet" href="/static/adminlte/dist/css/AdminLTE.min.css">
		<title></title>
	</head>
	<body>

<section class="content">
      <div class="row">
		<div class="col-xs-12">
		          <div class="nav-tabs-custom">
		            <ul class="nav nav-tabs">
		              <li class="active"><a href="{:url('nav/index')}"  aria-expanded="true">导航管理</a></li>
		              <li><a href="{:url('nav/add')}" aria-expanded="true">添加导航</a></li>
		            </ul>
		            <div class="tab-content">
						<table class="table table-hover">
							<thead>
								<tr>
									<th>ID</th>
									<th>排序</th>
									<th>导航名称</th>
									<th>状态</th>
									<th>操作</th>
								</tr>
							</thead>
			                <tbody>
			                	{volist name="nav_level_list" id="vo"}
					                <tr>
					                  <td>{$vo.id}</td>
					                  <td>{$vo.sort}</td>
					                  <td>{neq name="vo.level" value="1"}|{php}for($i=1;$i<$vo['level'];$i++){echo ' ----';}{/php}{/neq} {$vo.name}</td>
					                  <td>{php}echo $vo['status']==1 ? '显示' : '隐藏';{/php}</td>
					                  <td>
			                            <a href="{:url('admin/nav/add',['pid'=>$vo['id']])}" class="label label-primary">添加子导航</a>
			                            <a href="{:url('admin/nav/edit',['id'=>$vo['id']])}" class="label label-success">编辑</a>
			                            <a href="{:url('admin/nav/delete',['id'=>$vo['id']])}" class="label label-danger ajax-delete">删除</a>					                  	
					                  	
					                  </td>
					                </tr>				                		
			                	{/volist}	                
			              </tbody>
						</table>		              
		            </div><!-- /.tab-content -->
		          </div><!-- /.nav-tabs-custom -->
		</div><!--/.row-->
      </div>
  </section>
<!-- jQuery 2.2.3 -->
<script src="/static/adminlte/plugins/jQuery/jquery-2.2.3.min.js"></script>
<script src="/static/layer/layer.js" type="text/javascript" charset="utf-8"></script>
<!-- Bootstrap 3.3.6 -->
<script src="/static/adminlte/bootstrap/js/bootstrap.min.js"></script>
<script src="/static/js/admin.js"></script>
	</body>
</html>
